//
//  XIShape.h
//  XI Engine
//
//  Created by Balazs Faludi on 31.05.09.
//  Copyright 2009 Balazs Faludi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "XIEngine.h"
#import "XIObject.h"

#if TARGET_OS_IPHONE
#import "chipmunk.h"
#endif

@interface XIShape : XIObject// <PhysicalObjectDelegate>
{
	float alpha;
	CGPoint center; //float _centerX, _centerY;
	CGSize size;// float _sizeWidth, _sizeHeight;
	float angle;
	
	BOOL physicsEnabled;
#if TARGET_OS_IPHONE
	cpBody *body;
	cpShape *shape;
#endif
}

@property (nonatomic) float alpha;
@property (nonatomic) CGPoint center; //@property (nonatomic) float _centerX; @property (nonatomic) float _centerY;
@property (nonatomic) CGSize size; //@property (nonatomic) float _sizeWidth; @property (nonatomic) float _sizeHeight;
@property (nonatomic) float angle;

@property (nonatomic) BOOL physicsEnabled;
#if TARGET_OS_IPHONE
@property (nonatomic) cpBody *body;
@property (nonatomic) cpShape *shape;
#endif

#if TARGET_OS_IPHONE
- (void)shapeWasUpdated;
- (void)updateBodyAndShape;
- (void)enablePhysics;
- (void)disablePhysics;
#endif

@end
